package qe.spider.grab;

import cn.hutool.core.io.FileUtil;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;

import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import java.util.Map;

public class GrabGubit {
    public static Map<String, String> cookies = new HashMap<>();

    public String getDefaultCookie() {
        String json = FileUtil.readString("GuBit.json", StandardCharsets.UTF_8);
        JsonObject jsonObject = JsonParser.parseString(json).getAsJsonObject();
        return jsonObject.get("cookie").getAsString();
    }
}
